import request from '@/utils/request'

// 查询人员导入附件列表
export function listEmployeeImportAttach(query) {
  return request({
    url: '/erecord/employeeImportAttach/list',
    method: 'get',
    params: query
  })
}

// 查询人员导入附件详细
export function getEmployeeImportAttach(id) {
  return request({
    url: '/erecord/employeeImportAttach/' + id,
    method: 'get'
  })
}

// 新增人员导入附件
export function addEmployeeImportAttach(data) {
  return request({
    url: '/erecord/employeeImportAttach',
    method: 'post',
    data: data
  })
}

// 修改人员导入附件
export function updateEmployeeImportAttach(data) {
  return request({
    url: '/erecord/employeeImportAttach',
    method: 'put',
    data: data
  })
}

// 删除人员导入附件
export function delEmployeeImportAttach(id) {
  return request({
    url: '/erecord/employeeImportAttach/' + id,
    method: 'delete'
  })
}

export function importEmployeeImportAttach(data) {
  return request({
    url: '/erecord/employeeImportAttach/importAttach',
    method: 'post',
    data: data
  })
}